import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/views/index'
import ShopList from '@/views/shop/list'
import ShopDetail from '@/views/shop/detail'
import AgainBuy from '@/views/buyCar/againBuy'
import RecommendBuy from '@/views/buyCar/recommendBuy'
import Infotips from '@/views/buyCar/infotips'
import TestDrive from '@/views/buyCar/testDrive'
import OderDetail from '@/views/buyCar/oderDetail'
import OderDetails from '@/views/buyCar/oderDetails'
import Deposit from '@/views/buyCar/deposit'
import Personinfo from '@/views/vkapply/personinfo'
import Registration from '@/views/vkapply/registration'
import Successinfo from '@/views/vkapply/successinfo'
Vue.use(Router)
export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: '时代意见领袖中心',
      component: Index,
      meta: {
        title: '时代意见领袖中心'
      }
    },
    {
      path: '/shoplist',
      name: '购车商城',
      component: ShopList,
      meta: {
        title: '购车商城'
      }
    },
    {
      path: '/shopdetail',
      name: '商品详情',
      component: ShopDetail,
      meta: {
        title: '商品详情'
      }
    },
    {
      path: '/againbuy',
      name: '再次购车',
      component: AgainBuy,
      meta: {
        title: '再次购车'
      }
    },
    {
      path: '/recommendBuy',
      name: '推荐购车',
      component: RecommendBuy,
      meta: {
        title: '推荐购车'
      }
    },
    {
      path: '/infotips',
      name: '信息确认',
      component: Infotips,
      meta: {
        title: '信息确认'
      }
    },
    {
      path: '/testDrive',
      name: '预约试驾',
      component: TestDrive,
      meta: {
        title: '预约试驾'
      }
    },
    {
      path: '/oderDetail',
      name: '订单详情1',
      component: OderDetail,
      meta: {
        title: '订单详情'
      }
    },
    {
      path: '/oderDetails',
      name: '订单详情',
      component: OderDetails,
      meta: {
        title: '订单详情'
      }
    },
    {
      path: '/deposit',
      name: '支付定金',
      component: Deposit,
      meta: {
        title: '支付定金'
      }
    },
    {
      path: '/personinfo',
      name: '填写信息',
      component: Personinfo,
      meta: {
        title: '时代意见领袖申请'
      }
    },
    {
      path: '/registration',
      name: '填写信息2',
      component: Registration,
      meta: {
        title: '时代意见领袖申请'
      }
    },
    {
      path: '/successinfo',
      name: '时代意见领袖申请',
      component: Successinfo,
      meta: {
        title: '时代意见领袖申请'
      }
    }
  ]
})
